Use reproducible date/time
authorIOhannes m zmölnig <zmoelnig@umlautQ.umlaeute.mur.at>
Thu, 21 Jan 2016 16:02:06 +0000 (17:02 +0100)
committerIOhannes m zmölnig <zmoelnig@umlautQ.umlaeute.mur.at>
Thu, 21 Jan 2016 16:02:06 +0000 (17:02 +0100)
debian/patches/reproducible-date.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/reproducible-date.patch b/debian/patches/reproducible-date.patch
new file mode 100644 (file)
index 0000000..6d9918e
--- /dev/null
@@ -0,0 +1,24 @@
+Description: use reproducible date/time
+ rather than using __DATE__ we use a value that is baed on the debian/changelog
+ timestamp.
+Author: IOhannes m zmölnig
+Last-Update: 2015-01-21
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- juce.orig/modules/juce_core/time/juce_Time.cpp
++++ juce/modules/juce_core/time/juce_Time.cpp
+@@ -448,10 +448,13 @@
+     return 0;\r
+ }\r
\r
++#ifndef BUILD_DATE\r
++# define BUILD_DATE __DATE__\r
++#endif\r
+ Time Time::getCompilationDate()\r
+ {\r
+     StringArray dateTokens;\r
+-    dateTokens.addTokens (__DATE__, true);\r
++    dateTokens.addTokens (BUILD_DATE, true);\r
+     dateTokens.removeEmptyStrings (true);\r
\r
+     return Time (dateTokens[2].getIntValue(),\r
index 1c9358264e64abe5f4c4ca8eaf1b228e5bd4a520..b415354667f6ed3a1d806ed1000e14b402a9047a 100644 (file)
@@ -1,2 +1,3 @@
 no-ztypes.patch
+reproducible-date.patch
 do-not-track.patch